//
// Created by yyancy on 2019/10/27.
//
#include <stdio.h>
#include <stdlib.h>
#include "letter.h"

ADDR *input(ADDR *top) {
    ADDR *last = top;
    ADDR *new;
    ASK(new);

    while (last->next != NULL)
        last = last->next;


    printf("请输入用户名(小于3个字符)\n");
    fgets(new->name, sizeof(new->name), stdin);
//    gets(new->name);
    printf("请输入电话(小于18个字符)\n");
    fgets(new->tel, sizeof(new->tel), stdin);

//    gets(new->tel);
    new->next = NULL;
    last->next = new;
    return top;
}
